package com.yunhe.sms.control;

/**
 * 工厂模式
 */
public class HomeControllerFactory {
    public static void homeRoute(int type){
        HomeController homeController = null;
        switch (type){
           case 1:homeController = TeacherHomeController.getInstance();break;
           case 2:homeController = AdminHomeController.getInstance();break;
       }
      homeController.homeRoute();
    }
}
